/*================================================================
*   Copyright (C) 2017 LiuYao. All rights reserved.
*   
*   Filename : node_wrapper.h
*   Author : LiuYao
*   Date : 2017-12-19
*   Description : 
*
================================================================*/
#ifndef _NODE_WRAPPER_H
#define _NODE_WRAPPER_H

#include "node.h"

class NodeWrapper{
    private:
        Node * node_;
    
    public:
        NodeWrapper(Node * node) : node_(node){}
        Node* getNode() const{ return node_; }
};

//struct NodeWrapperHash
//{
//    size_t operator()(const NodeWrapper & node) const{
//        return hash<string>()(rhs.name) ^ hash<int>()(rhs.val);
//    }
//};
//struct NodeWrapperCmp
//{
//    bool operator()(const Record& lhs, const Record& rhs) const{
//        return lhs.name == rhs.name && lhs.val == rhs.val;
//    }
//};
//unordered_set<Record, RecordHash, RecordCmp> records = {
//    { "b", 100 }, { "a", 80 }, { "cc", 70 }, { "d", 60 }, { "d", 60 }
#endif
